<?php

namespace App\Models\ChinaBank;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class OrderModel extends Model
{
    use SoftDeletes;
    protected $table = "bank_order";
    protected $primaryKey = "order_id";
    protected $guarded = [];

    public function wxuser(){
        return $this->hasOne(UserModel::class,'user_id','user_id');
    }

    public function shop(){
        return $this->hasOne(ShopAddressModel::class,'id',"book_shop");
    }

    public function card(){
        return $this->hasOne(CardModel::class,'card_id','card_id');
    }
    public static $status = ["待确认","待拍摄","已完成","已关闭"];
    public static $status2= ["选择状态","确认","已拍摄","关闭"];
}
